using System;
using System.Collections.Generic;
using System.Text;

namespace PerformanceTests {
  class Program {
    static void Main(string[] args) {
      PerformanceTestRunner runner = new PerformanceTestRunner();

      PerformanceTest readESRIShapeTest = new PerformanceTest("ESRI Shape File Read Performance Test");
      readESRIShapeTest.AddTestPart(Libraries.SPATIAL_SHARP, new spatialsharp.ReadESRIShapeFile());
      readESRIShapeTest.AddTestPart(Libraries.NTS, new nts.ReadESRIShapeFile());
      runner.AddTest(readESRIShapeTest);

      //PerformanceTest computeSurfaceArea = new PerformanceTest("Compute Surface Area Performance Test");
      //computeSurfaceArea.AddTestPart(Libraries.SPATIAL_SHARP, new spatialsharp.ComputeSurfaceArea());
      //computeSurfaceArea.AddTestPart(Libraries.NTS, new nts.ComputeSurfaceArea());
      //runner.AddTest(computeSurfaceArea);

      //PerformanceTest computeCentroid = new PerformanceTest("Compute Surface Centroid Performance Test");
      //computeCentroid.AddTestPart(Libraries.SPATIAL_SHARP, new spatialsharp.ComputeCentroid());
      //computeCentroid.AddTestPart(Libraries.NTS, new nts.ComputeCentroid());
      //runner.AddTest(computeCentroid);

      runner.Execute();

      runner.SaveResults("results-" + DateTime.UtcNow.ToString("yyyyMMddhhmmss") + ".xml");
    }
  }
}
